home *** CD-ROM | disk | FTP | other *** search
/ Chip 1999 March / CHIP Turkiye Mart 1999.iso / 101 / cleaner / contig12 / readme.txt < prev   
Text File  |  1999-01-14  |  4KB  |  77 lines

  1.  
  2.   Contig V1.2
  3.  
  4.   Copyright ⌐ 1998 Mark Russinovich
  5.  
  6.   Last Updated January 15, 1997
  7.  
  8.           Introduction There are a number of NT disk defraggers on the
  9.                        market. These tools are useful for performing a
  10.                        general defragmentation of disks, but while most
  11.                        files are defragmented on drives processed by
  12.                        these utilities, some files may not be. In
  13.                        addition, it is difficult to ensure that
  14.                        particular files that are frequently used are
  15.                        defragmented - they may remain fragmented for
  16.                        reasons that are specific to the defragmentation
  17.                        algorithms used by the defragging product that has
  18.                        been applied. Finally, even if all files have been
  19.                        defragmented, subsequent changes to critical files
  20.                        could cause them to become fragmented. Only by
  21.                        running an entire defrag operation can one hope
  22.                        that they might be defragmented again.
  23.  
  24.                        Contig is a single-file defragmenter that attempts
  25.                        to make files contiguous on disk. Its perfect for
  26.                        quickly optimizing files that are continuously
  27.                        becoming fragmented, or that you want to ensure
  28.                        are in as few fragments as possible.
  29.  
  30.   Installation and Use Contig works on NT 4.0 and higher. Contig can be
  31.                        used to defrag an existing file, or to create a
  32.                        new file of a specified size and name, optimizing
  33.                        its placement on disk. To make an existing file
  34.                        contiguous use Contig as follows:
  35.  
  36.                        Usage: contig [-v] [-q] [-s] [filename]
  37.  
  38.                        Use the -v switch to have Contig print out
  39.                        information about the file defrag operations that
  40.                        are performed. Use the -s switch to perform a
  41.                        recursive processing of subdirectories when you
  42.                        specify a filename with wildcards. For instance,
  43.                        to defragment all DLLs under c:\winnt you could
  44.                        enter "contig -s c:\winnt\*.dll". The -q switch,
  45.                        which over-rides the -v switch, makes Contig run
  46.                        in "quiet" mode, where the only thing it prints
  47.                        during a defrag run is summary information.
  48.  
  49.                        To make a new file that is defragmented upon
  50.                        creation, use Contig like this:
  51.  
  52.                        Usage: contig [-v] [-n filename length]
  53.  
  54.           How It Works Contig uses the native Windows NT defragmentation
  55.                        support that was introduced with NT 4.0 (see my
  56.                        documentation of the defrag APIs for more
  57.                        information). It first scans the disk collecting
  58.                        the locations and sizes of free areas. Then it
  59.                        determines where the file in question is located.
  60.                        Next, Contig decides whether the file can be
  61.                        optimized, based on free areas and the number of
  62.                        fragments the file currently consists of. If the
  63.                        file can be optimized, it is moved into the free
  64.                        spaces of the disk.
  65.  
  66.                        A significant amount of code is present in Contig
  67.                        to deal with NTFS files, which can be compressed.
  68.                        In addition, Contig must only move 16-cluster
  69.                        aligned portions of a NTFS file, and must not
  70.                        move, in one call to NT's defrag engine, a NTFS
  71.                        file segment that straddles a 256KB boundary in
  72.                        the file. Note that Contig does not move other
  73.                        files in an effort to make contiguous space on the
  74.                        disk for the target file.
  75.  
  76.   ------------------------------------------------------------------------
  77.